  <!-- *** CUT top -->
  <table width="800"  border="0" cellspacing="0" cellpadding="0" class="form" id="settings_attachments_top_table">
    <tr>
      <td align="left">
        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>
              <div class="form_title">Attachments settings</div>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <!-- If you don't want notes erase this START -->
    <tr>
      <td>
        <table width="100%"  border="0" cellspacing="0" cellpadding="0" class="form_note">
          <!-- Repeat this fo additional notes START -->
          <tr>
            <td valign="top" align="left">
              <table width="100%"  border="0" cellspacing="0" cellpadding="4" class="form_note_title">
                <tr>
                  <td><img src="img/modules/form_html_tpl_static_ajax_metallic/exclamation_mark.png" border="0" alt="icon exclamation mark"  width="16" height="16" /></td>
                  <td width="100%" align="left">Note:</td>
                </tr>
              </table>
            </td>
            <td align="left" width="99%">
              <div class="form_note_text">Fields marked with &quot;*&quot; are mandatory.</div>
            </td>
          </tr>
          <!-- Repeat this fo additional notes END-->
        </table>
      </td>
    </tr>
    <!-- If you don't want notes erase this END -->
    <tr>
      <td>
        <div id="settings_attachments">
          <form onsubmit="submit_ajax_settings_attachments(); return false;" action="admin/modules/tangra_cms/settings/settings_content_edit.php" method="post" name="settings_attachments_form" enctype="application/x-www-form-urlencoded">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="left">
                  <table width="100%"  border="0" cellspacing="0" cellpadding="0" class="form_row">
                    <tr>
                      <td class="form_even_row">
                        <!-- form_field_integer_positive settings_attachments_max_size START-->
                        <table width="100%" border="0" cellpadding="3" cellspacing="0" class="form_row">
                          <tr>
                            <td width="180">
                              <div align="right">Maximum size of single attachment*:</div>
                            </td>
                            <td width="1%">
                              <input class="form" name="settings_attachments_max_size" type="text" value="{$settings_attachments_max_size_val}" maxlength="12" size="40" id="settings_attachments_max_size" />
                            </td>
                            <td>
                              <div align="left"><span style="white-space:nowrap">Positive integer value.</span></div>
                            </td>
                          </tr>
                          {if $settings_attachments_max_size_has_error}
                          <!-- Potential errors START -->
                          {if $settings_attachments_max_size_error_mandatory_missing}
                          <!-- mandatory_missing START -->
                          <tr>
                            <td></td>
                            <td colspan="2">
                              <div class="form_error_message">Error: Field is mandatory.</div>
                            </td>
                          </tr>
                          <!-- mandatory_missing END -->
                          {/if}
                          {if $settings_attachments_max_size_error_max_length_exceeded}
                          <!-- max_length_exceeded START -->
                          <tr>
                            <td></td>
                            <td colspan="2">
                              <div class="form_error_message">Error: Allowed maximum of 12 characters exceeded.</div>
                            </td>
                          </tr>
                          <!-- max_length_exceeded END -->
                          {/if}
                          {if $settings_attachments_max_size_error_not_a_number}
                          <!-- not_a_number START -->
                          <tr>
                            <td></td>
                            <td colspan="2">
                              <div class="form_error_message">Error: Must be number.</div>
                            </td>
                          </tr>
                          <!-- not_a_number END -->
                          {/if}
                          {if $settings_attachments_max_size_error_not_an_integer}
                          <!-- not_an_integer START -->
                          <tr>
                            <td></td>
                            <td colspan="2">
                              <div class="form_error_message">Error: Must be integer value.</div>
                            </td>
                          </tr>
                          <!-- not_an_integer END -->
                          {/if}
                          {if $settings_attachments_max_size_error_integer_not_positive}
                          <!-- integer_not_positive START -->
                          <tr>
                            <td></td>
                            <td colspan="2">
                              <div class="form_error_message">Error: Value must be positive.</div>
                            </td>
                          </tr>
                          <!-- integer_not_positive END -->
                          {/if}
                          <!-- Potential errors END -->
                          {/if}
                        </table>
                        <!-- form_field_integer_positive settings_attachments_max_size END-->
                      </td>
                    </tr>
                    <tr>
                      <td class="form_odd_row">
                        <!-- form_field_integer_positive settings_attachments_max_total_size START-->
                        <table width="100%" border="0" cellpadding="3" cellspacing="0" class="form_row">
                          <tr>
                            <td width="180">
                              <div align="right">Maximum total size of attachments*:</div>
                            </td>
                            <td width="1%">
                              <input class="form" name="settings_attachments_max_total_size" type="text" value="{$settings_attachments_max_total_size_val}" maxlength="12" size="40" id="settings_attachments_max_total_size" />
                            </td>
                            <td>
                              <div align="left"><span style="white-space:nowrap">Positive integer value.</span></div>
                            </td>
                          </tr>
                          {if $settings_attachments_max_total_size_has_error}
                          <!-- Potential errors START -->
                          {if $settings_attachments_max_total_size_error_mandatory_missing}
                          <!-- mandatory_missing START -->
                          <tr>
                            <td></td>
                            <td colspan="2">
                              <div class="form_error_message">Error: Field is mandatory.</div>
                            </td>
                          </tr>
                          <!-- mandatory_missing END -->
                          {/if}
                          {if $settings_attachments_max_total_size_error_max_length_exceeded}
                          <!-- max_length_exceeded START -->
                          <tr>
                            <td></td>
                            <td colspan="2">
                              <div class="form_error_message">Error: Allowed maximum of 12 characters exceeded.</div>
                            </td>
                          </tr>
                          <!-- max_length_exceeded END -->
                          {/if}
                          {if $settings_attachments_max_total_size_error_not_a_number}
                          <!-- not_a_number START -->
                          <tr>
                            <td></td>
                            <td colspan="2">
                              <div class="form_error_message">Error: Must be number.</div>
                            </td>
                          </tr>
                          <!-- not_a_number END -->
                          {/if}
                          {if $settings_attachments_max_total_size_error_not_an_integer}
                          <!-- not_an_integer START -->
                          <tr>
                            <td></td>
                            <td colspan="2">
                              <div class="form_error_message">Error: Must be integer value.</div>
                            </td>
                          </tr>
                          <!-- not_an_integer END -->
                          {/if}
                          {if $settings_attachments_max_total_size_error_integer_not_positive}
                          <!-- integer_not_positive START -->
                          <tr>
                            <td></td>
                            <td colspan="2">
                              <div class="form_error_message">Error: Value must be positive.</div>
                            </td>
                          </tr>
                          <!-- integer_not_positive END -->
                          {/if}
                          <!-- Potential errors END -->
                          {/if}
                        </table>
                        <!-- form_field_integer_positive settings_attachments_max_total_size END-->
                      </td>
                    </tr>
                    <tr>
                      <td class="form_even_row">
                        <!-- form_field_text settings_attachments_forbidden_extensions START-->
                        <table width="100%" border="0" cellpadding="3" cellspacing="0" class="form_row">
                          <tr>
                            <td width="180">
                              <div align="right">Forbidden file extensions*:</div>
                            </td>
                            <td width="1%">
                              <input class="form" name="settings_attachments_forbidden_extensions" type="text" value="{$settings_attachments_forbidden_extensions_val}" maxlength="255" size="40" id="settings_attachments_forbidden_extensions"/>
                            </td>
                            <td>Comma separated list of extensions</td>
                          </tr>
                          {if $settings_attachments_forbidden_extensions_has_error}
                          <!-- Potential errors START -->
                          {if $settings_attachments_forbidden_extensions_error_mandatory_missing}
                          <!-- mandatory_missing START -->
                          <tr>
                            <td></td>
                            <td colspan="2">
                              <div class="form_error_message">Error: Field is mandatory.</div>
                            </td>
                          </tr>
                          <!-- mandatory_missing END -->
                          {/if}
                          {if $settings_attachments_forbidden_extensions_error_max_length_exceeded}
                          <!-- max_length_exceeded START -->
                          <tr>
                            <td></td>
                            <td colspan="2">
                              <div class="form_error_message">Error: Allowed maximum of 255 characters exceeded.</div>
                            </td>
                          </tr>
                          <!-- max_length_exceeded END -->
                          {/if}
                          {if $settings_attachments_forbidden_extensions_error_invalid_list}
                          <!-- invalid_list START -->
                          <tr>
                            <td></td>
                            <td colspan="2">
                              <div class="form_error_message">Error: {include  file="modules/tangra_cms/forms/field_errors/settings_content/`$_language`/field_error_invalid_list_`$_language`.tpl"}</div>
                            </td>
                          </tr>
                          <!-- invalid_list END -->
                          {/if}
                          <!-- Potential errors END -->
                          {/if}
                        </table>
                        <!-- form_field_text settings_attachments_forbidden_extensions END-->
                      </td>
                    </tr>
                    <tr>
                      <td class="form_odd_row">
                        <!-- form_field_text settings_attachments_upload_path START-->
                        <table width="100%" border="0" cellpadding="3" cellspacing="0" class="form_row">
                          <tr>
                            <td width="180">
                              <div align="right">Upload path:</div>
                            </td>
                            <td width="1%">
                              <input class="form" name="settings_attachments_upload_path" type="text" value="{$settings_attachments_upload_path_val}" maxlength="255" size="40" id="settings_attachments_upload_path"/>
                            </td>
                            <td>
                              <img src="/img/modules/crystal_icons_small/16x16/help.png" alt="help" width="16" height="16" {popup text="Directory where uploaded files will be stored. Relative to site_root/scratch/uploads/."} />                                                        
                            </td>
                          </tr>
                          {if $settings_attachments_upload_path_has_error}
                          <!-- Potential errors START -->
                          {if $settings_attachments_upload_path_error_mandatory_missing}
                          <!-- mandatory_missing START -->
                          <tr>
                            <td></td>
                            <td colspan="2">
                              <div class="form_error_message">Error: Field is mandatory.</div>
                            </td>
                          </tr>
                          <!-- mandatory_missing END -->
                          {/if}
                          {if $settings_attachments_upload_path_error_max_length_exceeded}
                          <!-- max_length_exceeded START -->
                          <tr>
                            <td></td>
                            <td colspan="2">
                              <div class="form_error_message">Error: Allowed maximum of 255 characters exceeded.</div>
                            </td>
                          </tr>
                          <!-- max_length_exceeded END -->
                          {/if}
                          {if $settings_attachments_upload_path_error_invalid_path}
                          <!-- invalid_path START -->
                          <tr>
                            <td></td>
                            <td colspan="2">
                              <div class="form_error_message">Error: {include  file="modules/tangra_cms/forms/field_errors/settings_attributes/`$_language`/field_error_invalid_path_`$_language`.tpl"}</div>
                            </td>
                          </tr>
                          <!-- invalid_path END -->
                          {/if}
                          <!-- Potential errors END -->
                          {/if}
                        </table>
                        <!-- form_field_text settings_attachments_upload_path END-->
                      </td>
                    </tr>
                  </table>
                  <input type="hidden" name="settings_attachments_form_id" value="{$settings_attachments_form_id_val}" id="settings_attachments_form_id"/>
                  <input type="hidden" name="settings_attachments_guard_value" value="{$settings_attachments_guard_value_val}" id="settings_attachments_guard_value"/>
                </td>
              </tr>
              <tr>
                <td align="left">
                  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="submit_row">
                    <tr>
                      <td width="180">&nbsp;</td>
                      <td width="100" align="left">
                        <input name="settings_attachments_submit" type="submit" value="Save" class="form_submit" />
                      </td>
                      <td width="50">&nbsp;</td>
                      <td>
                        <div class="form_cancel"><a href="admin/modules/tangra_cms/settings/settings.php">Cancel</a></div>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </form>
        </div>
      </td>
    </tr>
  </table>
  <!-- *** CUT bottom -->
